<%@ page import="java.util.jar.Attributes.Name"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="support.*, java.util.*" %>
<%
	String name = request.getParameter("name");
	String loc = request.getParameter("location");
	DatabaseAccessObject dao = new DatabaseAccessObject();
	int id  = dao.getUniversityIdByName(name,loc);
	String json = null;
	if (id == -1) {
		json = "{\"result\":\"true\"}";
		out.println(json);
	}
	else
	{
		json = "{\"result\":\"false\"}";
		out.println(json);
	}
%>